﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ATM
{
    public partial class changepinForm : Form
    {
        public changepinForm()
        {
            InitializeComponent();
        }
        
        private void ChangeButton_Click(object sender, EventArgs e)
        {
            if (NewmaskedTextBox2.Text == NewAgainmaskedTextBox3.Text)
            {
                this.DialogResult = DialogResult.OK;
            }
            else
            {
                
                MessageBox.Show(this,"Invalid new PIN!","PIN change Error",MessageBoxButtons.OK,MessageBoxIcon.Warning);
                
            }
        }

        
    }
}
